package com.wust.supermarket.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


import com.wust.supermarket.domain.Staff;

@Mapper
@Repository
public interface StaffDao {

	//查询所有员工
    List<Staff> listAllStaffs();

    //通过ID查询员工
    Staff getStaffById(int staffId);

    //通过用户名和密码查询员工
    Staff getStaffByName(@Param("staffUsername") String staffUsername,@Param("staffPassword") String staffPassword);
    
    //插入员工
    int insertStaff(Staff staff);

    //修改员工信息
    int updateStaff(Staff staff);

    //删除员工
    int deleteStaff(int staffId);
}
